<template>
  <div :class="content">
    <el-form :model="form" ref="form" label-width="100px" class="demo-ruleForm">
      <!-- 第一行 -->
      <el-row>
        <el-col :span="8">
          <!-- 姓名 -->
          <el-form-item label="姓名">
            <el-input v-model="form.name"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <!-- 性别 -->
          <el-form-item label="性别">
            <el-select v-model="form.sex" placeholder="请选择">
              <el-option label="男" value="man"></el-option>
              <el-option label="女" value="women"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <!-- 手机号码 -->
          <el-form-item label="手机号码">
            <el-input v-model="form.phonenumber"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 第二行 -->
      <el-row>
         <el-col :span="8">
           <!-- 生日 -->
          <el-form-item label="生日">
            <el-col :span="11">
              <el-date-picker
                type="date"
                placeholder="选择日期"
                v-model="form.date1"
                style="width: 100%"
              ></el-date-picker>
            </el-col>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <!-- 所在部门 -->
          <el-form-item label="所在部门">
            <el-select v-model="form.department" placeholder="请选择">
              <el-option label="总经办" value="general"></el-option>
              <el-option label="业务一部" value="businessone"></el-option>
              <el-option label="业务二部" value="businesstwo"></el-option>
              <el-option label="渠道招商部" value="channel"></el-option>
              <el-option label="营销部" value="maketing"></el-option>
              <el-option label="采购部" value="purchasing"></el-option>
              <el-option label="客服部" value="customer"></el-option>
              <el-option label="财务部" value="finance"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <!-- 是否离职 -->
          <el-form-item label="是否离职">
            <el-select v-model="form.dimission" placeholder="请选择">
              <el-option label="在职" value="yes"></el-option>
              <el-option label="已离职" value="no"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
      </el-row>

      <!-- 底部按钮 -->
      <el-row :class="btn">
        <el-col>
          <el-button type="primary" @click="submitForm" plain>立即搜索</el-button>
          <el-button type="warning" @click="resetForm" plain>清空条件</el-button>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: "StaffSearchItem",
  data() {
    return {
      form: {
        name: "", //姓名
        sex: "", //性别
        phonenumber: "", //手机号码
        date1: "", //生日
        department: "", //所在部门
        dimission: "", //是否离职
      },
      btn: "btn",
      content: "content",
    }
  },
  
  methods: {
    submitForm() {},//立即搜索
    resetForm() {},//清空条件
    
  }
};
</script>

<style lang="scss" scoped>
.content {
  margin: 20px 0px;
}
.btn {
  text-align: center;
}
el-col{
  overflow: inherit;
}
</style>